<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style/css/regist.css" />
<script type="text/javascript" src="../style/js/user.js"></script>
<script type="text/javascript" src="../style/js/book.js"></script>
<script type="text/javascript" src="../style/js/adress.js">
<script type="text/javascript">
 var Gid = document.getElementById;
 var showArea = function() {
 var province = Gid('s_province').value;
 var city = Gid('s_city').value;
 var county = Gid('s_county').value;
 if (province == city) {
 city = "";
 }
 Gid("txtAddress").value = province + city + county;
 }
 //Gid('s_county').setAttribute('onchange', 'showArea()');
 </script>
<title>账号注册</title>
</head>
<body onload="_init_area()">
	<div id="head">
		<div class="title">
			<ul>
				<li><a id="linkLogin" href="login.jsp">登陆</a></li>
				<li><a id="linkRegist" href="regist.jsp">注册</a></li>
				<li><a id="linkOrders" href="login.jsp">我的订单</a></li>
				<li><a href="#">我的小屋</a></li>
			</ul>
		</div>
	</div>
	<div id="content">
		<div class="logo"></div>
		<form action="../UserServlet?opt=regist" name="doRedist" onsubmit="return regist()" method="post">
			<div class="registBox">
				<ul>
					<li class="first">用户名：<input type="text" id="userId" name="userId" onblur="idChang()"><span id="idError">*</span></li>
					<li>设置密码：<input type="password" id="userPassword" name="userPassword" onblur="pwdChang()"><span id="pwdError">*</span></li>
					<li>确认密码：<input type="password" id="surePassword" name="surePassword" onblur="sureChang()"><span id="sureError">*</span></li>
					<li>验证邮箱：<input type="text" id="userEmail" name="userEmail" onblur="emailChange()"><span id="emailError">*</span></li>
					<li>真实姓名：<input type="text" id="userName" name="userName"><span id="nameError">*</span></li>
					<li>手机号码：<input type="text" id="userPhone" name="userPhone" onblur="phoneChange()"><span id="phoneError">*</span></li>
					<li>居住地址：<select ID="s_province" runat="server" name="s_province" ></select>
					<select ID="s_city" runat="server" name="s_city"></select>
					<select ID="s_county" runat="server" name="s_county" onchange = "showArea()"></select>
					<input type = "text" id = "txtAddress" name="txtAddress"/></li>
					<li><input type="submit" id="doRegist" name="doRegist" value="立即注册"><a href="login.jsp">已有账号</span></li>
				</ul>
			</div>
		</form>
	</div>
<%@ include file="footer.jsp" %>
</body>
</html>
